<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv=“X-UA-Compatible” content=“chrome=1″ />
    <title>Title</title>
    <link rel="stylesheet" href="${resCtx}/css/admin/reset.css">
    <#if tplCss??><@tplCss/></#if>
</head>
<body>
<div id="banner">
    <a class="logo" href="${ctx}/admin/home"><img src="${resCtx}/images/admin/logo.png"></a>
    <h4>后台管理系统</h4>
    <div class="top-nav">
        <a href="${ctx}/j_spring_security_logout">退出</a>
    </div>
</div>

<div id="left-side">
    <dl class="menu ${isSpread('user')}">
        <dt><span class="m-ico m-1"></span>用户管理</dt>
        <dd data-href="/user/add">新增用户</dd>
        <dd data-href="/user/list">用户列表</dd>
    </dl>
    <dl class="menu ${isSpread('question')}">
        <dt><span class="m-ico m-2"></span>题库管理</dt>
        <dd data-href="/question/add">新增问题</dd>
        <dd data-href="/question/list">问题列表</dd>
    </dl>
    <dl class="menu ${isSpread('sys')}">
        <dt><span class="m-ico m-3"></span>系统设置</dt>
        <dd>参数列表</dd>
    </dl>
    <dl class="menu ${isSpread('exer')}">
        <dt><span class="m-ico m-3"></span>有奖活动</dt>
        <dd data-href="/exer/wheel">大转盘</dd>
    </dl>
</div>
<div id="right-side">
    <#if main??><@main/></#if>
</div>
<script type="text/javascript">
    var ctx = '${ctx}';
    var resCtx = '${resCtx}';
</script>
<script type="text/javascript" src="${resCtx}/js/jquery-1.12.4.min.js"></script>
<!--[if lte IE 9]>
<script type="text/javascript" src="${resCtx}/js/plugins/selectivizr.js"></script>
<![endif]-->
<script type="text/javascript" src="${resCtx}/js/plugins/layer-v3.0.3/layer.js"></script>
<script type="text/javascript" src="${resCtx}/js/plugins/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
<script type="text/javascript" src="${resCtx}/js/plugins/jquery-validation-1.14.0/dist/localization/messages_zh.min.js"></script>
<script type="text/javascript" src="${resCtx}/js/admin/common.js"></script>
<#if tplJs??><@tplJs/></#if>
</body>
</html>

<#function isSpread puri>
    <#if puri == curMenu>
        <#return 'spread'/>
        <#else>
            <#return ''/>
    </#if>
</#function>